Skip to content

fix: Truncate query in exceptions and add test coverage for protocol limits#15

Merged
mkaufmann merged 4 commits intoforcedotcom:mainfrom
mkaufmann:mkaufmann-test-limits
Feb 14, 2025
Merged

fix: Truncate query in exceptions and add test coverage for protocol limits#15
mkaufmann merged 4 commits intoforcedotcom:mainfrom
mkaufmann:mkaufmann-test-limits

Conversation

@mkaufmann
Copy link
Member

@mkaufmann mkaufmann commented Feb 6, 2025

With this change we are checking limits around:

  • headers
  • request size
  • parameter sizes

The driver already passed all limits but the tests uncoverd a significant inefficiency around exception creation. With multi megabyte queries this was causing multi second hangs. Thus we now truncate the query in the exception message.
If the query is truncated it'll have a <truncated> suffix

…limits

With this change we are checking limits around:
- headers
- request size
- parameter sizes

The driver already passed all limits but the tests uncoverd a significant inefficiency around exception creation.
With multi megabyte queries this was causing multi second hangs.
Thus we now truncate the query in the exception message.
@mkaufmann mkaufmann force-pushed the mkaufmann-test-limits branch from 794dbf1 to e80b0a9 Compare February 13, 2025 20:10
@mkaufmann mkaufmann merged commit e11d03e into forcedotcom:main Feb 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants